<?php echo use_helper('jQuery');?>
<div class="left_column">
    <?php if(isset($result_answer_prev)):?>
        <?php echo jq_link_to_remote(image_tag('prev.png'),array('url' => '@show_question?id='.$result_answer_prev->getId(), 'update' => 'answer_box'))?>
    <?php endif;?>
</div>
<div class="center_column">
    <h2>
        <?php echo html_entity_decode($question->getQuestion())?>
    </h2>
     <?php echo jq_form_remote_tag(array(
        'update' => 'answer_box',
        'url' => '@doanswer',
        'method' => 'post'
    )) ?>
    <form action="<?php echo url_for('@doanswer') ?>" method="post">
        <fieldset>
        <?php echo $form->renderHiddenFields() ?>
        <?php echo $form['answer_list'] ?>
        <input type="submit" value="відповісти"/>
        </fieldset>
    </form>
</div>
<div class="right_column">
    <?php if(isset($result_answer_next)):?>
        <?php echo jq_link_to_remote(image_tag('next.png'),array('url' => '@show_question?id='.$result_answer_next->getId(), 'update' => 'answer_box'))?>
    <?php endif;?>
</div>
<?php $result = ResultPeer::retrieveByPK($sf_user->getAttribute('result_id'))?>
<div class="count_box">Залишилось&nbsp;<?php echo count($result->getNotAnsweredResultAnswers())?>&nbsp;з&nbsp;<?php echo count($result->getResultAnswerss())?></div>